﻿using System;
using System.Collections.Generic;
using System.Text;

namespace designmodule.structuralmodule.Decorator
{
    class Main
    {
        void main()
        {
            var c = new ConcreteComponent();
            var a=new ConcreteDecoratorA();
            var b=new ConcreteDecoratorB();

            a.Component = c;
            b.Component = a;
            b.Operation();
        }
    }
}
